package com.android.bandroid.api.service;

import com.android.bandroid.api.model.ApiResponse;
import com.android.bandroid.api.util.CoreCallbackListener;
import com.android.bandroid.model.LoginResp;

/**
 * Created by Kevin on 2015/11/3.
 */
public interface Api {
    //  访问地址
    public  static final String BASE_URL = "https://172.16.21.235:8443/api/";
    //  登录
    public static final String LOGIN_BY_APP = BASE_URL + "appLogin/login.app";

    /**
     * 登录
     *
     * @param userName 用户名
     * @param password  MD5加密的密码
     * @return 成功时返回：{ "event": "0", "msg":"success" }
     */
    public void loginByApp(String userName, String password, CoreCallbackListener<ApiResponse<LoginResp>> listener);
}
